package com.lumingfeng.service;

import com.lumingfeng.entity.Goods;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by yc on 16/8/16.
 */
@Component
public interface GoodsService {

//    int deleteByPrimaryKey(Integer id);
//
//    int insert(Goods record);
//
////    int insertSelective(Goods record);
//
//    Goods selectByPrimaryKey(Integer id);
//
////    int updateByPrimaryKeySelective(Goods record);
//
//    int updateByPrimaryKey(Goods record);


    Integer insertGoods(Goods goods);
    Goods getGoodsById(int id);
    List<Goods> getGoods();
    List<Goods> getRTGoods();
    List<Goods> getGoodsByName(String name);
    List<Goods> getRTGoodsByName(String name);

}
